Skip to content

feat: add tap to click touchpad setting - #47

Merged
mirkobrombin merged 1 commit into
singularityos-lab:mainfrom
jp-vernooy:feat/tap-to-click
Nov 24, 2026
Merged

mirkobrombin merged 1 commit into
singularityos-lab:mainfrom
jp-vernooy:feat/tap-to-click

Conversation

@jp-vernooy

@jp-vernooy jp-vernooy commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Add a "Tap to Click" switch to the "Mouse & Touchpad" group on the Keyboard settings page.

  • The switch is bound to the new touchpad-tap-to-click key in dev.sinty.desktop.
  • ShortcutManager writes the value as <tap>yes|no</tap> in the <device category="touchpad"> section of the labwc rc.xml. It is next to <naturalScroll>, the same as the other touchpad options.
  • When the key changes, the shell writes rc.xml again and reconfigures labwc, the same as for the scroll keys.
  • The switch, the signal handler and the <tap> line are used only when the schema has the key. With an older singularity-desktop schema, the shell keeps working and does not write <tap>. labwc then uses its default (tap on).

Why: Today, tap to click is always on, and the user cannot easily turn it off. On touchpads that click when you press them (i.e. Apple force-sensing trackpads), a light touch can cause an unwanted click.

Verification:

  • Clean build
  • meson test: 101 OK, 6 FAIL. The same 6 tests fail on main without this change (async, async-loads, media-sources, choice-button, parental-helper, crash-handler).
  • Manual test: built and installed locally, confirmed this works as expected.

Screenshots:
image

Depends on singularityos-lab/singularity-desktop#283 for the schema key. Either PR can merge first.

Generative AI assistance

AI assistance: none

Add a "Tap to Click" switch to the Mouse & Touchpad settings. The shell
writes the value as <tap> in the touchpad section of the labwc rc.xml
and reconfigures labwc when the value changes.

The switch and the <tap> element are only used when the
dev.sinty.desktop schema has the touchpad-tap-to-click key, so the
shell keeps working with an older schema.
@mirkobrombin

Copy link
Copy Markdown
Member

Merging together with singularity-desktop#283.

@mirkobrombin
mirkobrombin merged commit 41c6351 into singularityos-lab:main Nov 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants